<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>即时访问用户</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="/${BasePath}/static/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="/${BasePath}/static/css/public.css" media="all" type="text/css">
	<style>
		.layui-table-cell{
			height:50px;
			line-height:50px
		}
	</style>
</head>
<body class="childrenBody">
<form class="layui-form" lay-filter="example">
	<table id="visitorList" lay-filter="visitorList"></table>
</form>
<script src="/${BasePath}/static/layui/layui.js" charset="utf-8" type="text/javascript"></script>
<script type="text/javascript" src="/${BasePath}/static/js/common/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="/${BasePath}/static/js/common/datatable_common.js"></script>
<script type="text/javascript">
layui.use(['form','layer','laydate','table','laytpl'],function(){
    var form = layui.form,
        layer = parent.layer === undefined ? layui.layer : top.layer,
        $ = layui.jquery,
        laydate = layui.laydate,
        laytpl = layui.laytpl,
        table = layui.table;

    //列表
    var tableIns = table.render({
        elem: '#visitorList',
        url : '/${BasePath}/baseset/queryVisitorPage',
        cellMinWidth : 95,
        page : true,
        height : "full-125",
        limit : 20,
        limits : [1,10,15,20,25],
        id : "productsListTable",
        cols : [[
            {type: "checkbox", fixed:"left", width:50},
            {field: 'title', title: '活动名称', width:200},
            {field: 'nickname', title: '用户昵称', width:300},
            {field: 'headimgurl', title: '头像',templet:function(d){
                return '<img src="'+d.headimgurl+'" height="50" />';
            }, width:100},
            {field: 'country', title: '国家'},
            {field: 'province', title: '省份'},
            {field: 'city', title: '城市'},
            {field: 'createTime', title: '访问时间', templet:function(res){return replaceDate(res.createTime / 1000)}}
        ]]
    ,skin: 'line'
    });

})
</script>
</body>
</html>